package com.qqtech.qquan.user.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@SuppressWarnings("serial")
public class UserAddressVo extends UserAddress{

	/** 社区层级id */
	private Integer communityAddrId;
	/** 社区名称 */
	private String communityName;
	/**
	 * 地址
	 */
	private String address;
	/**
	 * 地址全称
	 */
	private String fullAddress;
	
	/** ui的模版顺序 */
	private Integer template = 0;
	
	/** ui的模版顺序 */
	private Integer rightTemplate = 1;
	
	public Integer getCommunityAddrId() {
		return communityAddrId;
	}

	public void setCommunityAddrId(Integer communityAddrId) {
		this.communityAddrId = communityAddrId;
	}

	public String getCommunityName() {
		return communityName;
	}

	public void setCommunityName(String communityName) {
		this.communityName = communityName;
	}

	public String getAddress() {
		address = getNextAddr() + getHouseNumber();
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getFullAddress() {
		fullAddress = getProvinceName() + getCityName() + getRegionName()+ getNextAddr() + getHouseNumber();
		return fullAddress;
	}

	public void setFullAddress(String fullAddress) {
		this.fullAddress = fullAddress;
	}

	public Integer getTemplate() {
		return template;
	}

	public void setTemplate(Integer template) {
		this.template = template;
	}

	public Integer getRightTemplate() {
		return rightTemplate;
	}

	public void setRightTemplate(Integer rightTemplate) {
		this.rightTemplate = rightTemplate;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
}